﻿using ProTrack.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IServices.Integrated
{
    public interface IClientServices
    {
        //查询所有数据
        public Task<IEnumerable<Client>> GetAllAsync();


        //根据条件查询数据
        public Task<IEnumerable<Client>> GetAsync(int PageIndex, int PageSize, string ClientCode, string ClientName,string Tel);

        public Task<int> GetCountAsync(string ClientCode, string ClientName,string Tel);

        //修改
        public Task<bool> UpdateAsync(Client model);

        //新增
        public Task<bool> AddAsync(Client model);

        public Task<bool> DeleteAsync(int[] Ids);
        public Task<bool> DeleteAsync(int Id);
    }
}
